import { type User } from '@/model/user'

/**
 * @deprecated 接口对接完成, 此函数将在不久后删除
 */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const mockLogin = (username: string, password: string): User => {
  return {
    uid: 1,
    realname: username,
    gender: 1,
    phone: '13800138000',
    role: username === 'admin' ? 0 : 1,
    building: '',
    room: '',
    residentNature: '其他',
  }
}
